@layout("/common/_form.html",{js:["/assets/rms/course/course_add.js"],plugins:["ue"]}){
<form class="layui-form" id="courseForm" lay-filter="courseForm">
    <div class="layui-fluid" style="padding-bottom: 75px;">
        <div class="layui-card">
            <div class="layui-card-header">基本信息</div>
            <div class="layui-card-body">
                <div class="layui-form-item layui-row">
                    <input name="id" type="hidden"/>
                    <div class="layui-inline layui-col-md12">
                        <label class="layui-form-label">课程名称<span style="color: red;">*</span></label>
                        <div class="layui-input-block">
                            <input id="name" name="name" placeholder="请输入课程名称" type="text" class="layui-input" lay-verify="required" required/>
                        </div>
                    </div>
                    <div class="layui-inline layui-col-md12">
                        <label class="layui-form-label">课程图片<span style="color: red;">*</span></label>
<!--                        <div class="layui-input-block">-->
<!--                            <input id="url" name="url" placeholder="请输入图片地址" type="text" class="layui-input" lay-verify="required" required/>-->
<!--                        </div>-->
                        <div class="layui-input-block">
                            <div class="layui-upload-list"  id="changeImg">
                                <img class="layui-upload-img changeImg" id="demo1" class src="${ctxPath}/assets/common/images/blank.png" >
                                <p id="demoText"></p>
                                <input id="url" name="url" placeholder=""  type="hidden" class="layui-input"/>
                            </div>
                        </div>
                    </div>
                    <div class="layui-inline layui-col-md12">
                        <label class="layui-form-label">课程简介<span style="color: red;">*</span></label>
                        <div class="layui-input-block">
                            <input id="brief" name="brief" placeholder="请输入简介" type="text" class="layui-input" lay-verify="required" required/>
                        </div>
                    </div>
                    <div class="layui-inline layui-col-md12">
                        <label class="layui-form-label">开课时间<span style="color: red;">*</span></label>
                        <div class="layui-input-block">
                            <input type="text" id="startTime" name="startTime" class="layui-input"  placeholder="yyyy-MM-dd HH:mm">
                        </div>
                    </div>
                    <div class="layui-inline layui-col-md12">
                        <label class="layui-form-label">讲课老师<span style="color: red;">*</span></label>
                        <div class="layui-input-block">
                            <input id="teachers" name="teachers" placeholder="请输入讲课老师" type="text" class="layui-input" lay-verify="required" required/>
                        </div>
                    </div>
                    <div class="layui-inline layui-col-md12">
                        <label class="layui-form-label">上课地点<span style="color: red;">*</span></label>
                        <div class="layui-input-block">
                            <input id="address" name="address" placeholder="请输入上课地点" type="text" class="layui-input" lay-verify="required" required/>
                        </div>
                    </div>
                    <div class="layui-inline layui-col-md12">
                        <label class="layui-form-label">课程介绍<span style="color: red;">*</span></label>
                        <div class="layui-input-block">
                            <script id="content" name="content" type="text/plain"></script>
                        </div>
                    </div>
<!--                    <div class="layui-inline layui-col-md12">-->
<!--                        <label class="layui-form-label">启用状态</label>-->
<!--                        <div class="layui-input-block">-->
<!--                            <input id="status" name="status" placeholder="请输入启用状态:0-停用，1-启用" type="text" class="layui-input"/>-->
<!--                        </div>-->
<!--                    </div>-->
                </div>
            </div>
        </div>
    </div>
    <div class="form-group-bottom text-center">
        <button class="layui-btn" lay-filter="btnSubmit" lay-submit>&emsp;提交&emsp;</button>
        <button type="reset" class="layui-btn layui-btn-primary" ew-event="closeDialog">&emsp;取消&emsp;</button>
    </div>

</form>

@}